var ClubRoomItem = Item.extend({
    _ccsFileName: res.ClubRoomItem_json,
    _roomData: null,

    initItem: function (clubId,data) {
        this._roomData = data;
        this._clubId = clubId;
    },

    onEnter: function () {
        Item.prototype.onEnter.call(this);
        this._addClickListeners();
    },

    _initClickListeners: function () {
        this._clickListeners = {
            'btn_jiesan': '_clickJieSan',
        }
    },

    _clickJieSan: function () {
        var roomId = this._roomData.room_id;
        var _clubId = this._clubId;
        showMessageBox('是否确定解散该房间？', function () {
            network.send(3019, {
                daikai_room_id: roomId,
                room_id: roomId,
                force: true
            });
            // network.send(2103, {cmd: 'listClubRoom', club_id: _clubId, reason: 'flushClub'});
        }, function () {
        });
    },

    refreshData: function (clubId,data) {
        this._roomData = data;
        this._clubId = clubId;

        var time = timestamp2time(this._roomData.create_time);
        this._nodeList['create_time'].setString(time);
        this._nodeList['room_id'].setString(this._roomData.room_id);
    },
});